/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-01 10:19:55
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\other\uiTimeline.js
 * @CIMC-V2
 */
import { exInput, exSelect, exSwitch, exStyleTypeSelect } from '@ve/common/components/extension'

export default {
  VERSION: '20220408',
  type: 'uiTimeline',
  name: '时间线',
  icon: 'time-line',
  svg: 'shijianxian',
  //数据别名
  // dataName: 'uiTimeline_data',
  //数据集合 表单 列表等等
  data: {
    requestData: {
      data: [],
    },
  },
  //扩展
  extension: {
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    getDataKey: exInput('获取数据Key', ''),
    hideTimestamp: exSwitch('隐藏时间戳', false),
    placement: exSelect('时间戳方向', 'bottom', [
      {
        value: 'bottom',
        label: '下面(bottom)',
      },
      {
        value: 'top',
        label: '上面(top)',
      },
    ]),
    type: exStyleTypeSelect('节点类型', 'info'),
    size: exSelect('节点尺寸', 'normal', [
      {
        value: 'normal',
        label: '正常(normal)',
      },
      {
        value: 'large',
        label: '大(large)',
      },
    ]),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
  dataSourceBind: {
    sourceId: {
      type: 'exGetDataSource',
      name: '组件ID',
      value: {
        type: 1,
        source: [],
      },
    },
    // dataKey: exInput('数据Key', ''),
    timestamp: exInput('时间Key', ''),
    content: exInput('内容Key', ''),
  },
}
